set(libname singleton)
set(exename exe_singleton)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/headers)

add_library(${libname} impl.cpp)

add_executable(${exename} main.cpp)

target_link_libraries(${exename} PUBLIC ${libname})

# copy config file to binary 
configure_file(./.conf ${CMAKE_BINARY_DIR}/05-Singleton/.conf COPYONLY)